package com.itheima.demo.demo12;

import java.util.function.Supplier;

public class LamaSupp2 {
    public static void main(String[] args) {
        method(()->{return "帅气的强强";});
    }

    private static void method(Supplier<String> s) {
        String s1 = s.get();
        System.out.println(s1);


    }
}
